package com.brainhealth.customer.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.brainhealth.customer.mapper.CustomerDifficultyMapper;
import com.brainhealth.customer.domain.CustomerDifficulty;
import com.brainhealth.customer.service.ICustomerDifficultyService;

/**
 * 会员游戏难度Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-05-30
 */
@Service
public class CustomerDifficultyServiceImpl implements ICustomerDifficultyService 
{
    @Autowired
    private CustomerDifficultyMapper customerDifficultyMapper;

    /**
     * 查询会员游戏难度
     * 
     * @param customerDifficultyId 会员游戏难度主键
     * @return 会员游戏难度
     */
    @Override
    public CustomerDifficulty selectCustomerDifficultyByCustomerDifficultyId(Long customerDifficultyId)
    {
        return customerDifficultyMapper.selectCustomerDifficultyByCustomerDifficultyId(customerDifficultyId);
    }

    /**
     * 查询会员游戏难度列表
     * 
     * @param customerDifficulty 会员游戏难度
     * @return 会员游戏难度
     */
    @Override
    public List<CustomerDifficulty> selectCustomerDifficultyList(CustomerDifficulty customerDifficulty)
    {
        return customerDifficultyMapper.selectCustomerDifficultyList(customerDifficulty);
    }

    /**
     * 新增会员游戏难度
     * 
     * @param customerDifficulty 会员游戏难度
     * @return 结果
     */
    @Override
    public int insertCustomerDifficulty(CustomerDifficulty customerDifficulty)
    {
        return customerDifficultyMapper.insertCustomerDifficulty(customerDifficulty);
    }

    /**
     * 修改会员游戏难度
     * 
     * @param customerDifficulty 会员游戏难度
     * @return 结果
     */
    @Override
    public int updateCustomerDifficulty(CustomerDifficulty customerDifficulty)
    {
        return customerDifficultyMapper.updateCustomerDifficulty(customerDifficulty);
    }

    /**
     * 批量删除会员游戏难度
     * 
     * @param customerDifficultyIds 需要删除的会员游戏难度主键
     * @return 结果
     */
    @Override
    public int deleteCustomerDifficultyByCustomerDifficultyIds(Long[] customerDifficultyIds)
    {
        return customerDifficultyMapper.deleteCustomerDifficultyByCustomerDifficultyIds(customerDifficultyIds);
    }

    /**
     * 删除会员游戏难度信息
     * 
     * @param customerDifficultyId 会员游戏难度主键
     * @return 结果
     */
    @Override
    public int deleteCustomerDifficultyByCustomerDifficultyId(Long customerDifficultyId)
    {
        return customerDifficultyMapper.deleteCustomerDifficultyByCustomerDifficultyId(customerDifficultyId);
    }
}
